package com.tg.demo.seata.order.controller;


import com.tg.demo.common.util.CommonResult;
import com.tg.demo.seata.order.entity.SeataOrder;
import com.tg.demo.seata.order.feign.StorageFeignClient;
import com.tg.demo.seata.order.service.ISeataOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Rubble
 * @since 2020-05-22
 */
@RestController
@RequestMapping("/order/seataOrder")
public class SeataOrderController {

    @Autowired
    private ISeataOrderService seataOrderService;



    @PostMapping("/")
    public CommonResult saveOrder(@RequestBody SeataOrder seataOrder){

        seataOrderService.seataSaveOrder(seataOrder);

        return CommonResult.success();
    }
}

